<template>
  <div>
    12
    <search-module :search="search" :table="table">
      <!-- add search-module btns template -->
   </search-module>
    <table-module :table="table"></table-module>
  </div>
</template>
<script lang="ts" setup>
import { handleInit, pageConfig } from '@/utils'
import { handleData } from 'lz-utils-lib'
import axios from '@/utils/request'
import { ElMessageBox, ElMessage } from 'element-plus'
import { ref, reactive } from "vue"


/* add custom function */

const ConfigData = () =>
  pageConfig({
  "search": {
    "realName": {
      "label": "任务D"
    },
    "uniqueCode": {
      "label": "请输入任务引D"
    },
    "nodeId": {
      "label": "任务名称"
    },
    "caseStatus": {
      "label": "节点名称"
    },
    "userName": {
      "label": "筛选"
    }
  },
  "table": {
    "totalCount": {
      "label": "名称"
    },
    "pageSize": {
      "label": "关联事件"
    },
    "totalPage": {
      "label": "字典表"
    },
    "currPage": {
      "label": "更新时间"
    },
    "list": {
      "label": "操作人"
    },
    "btn": {
      "clicks": [
        /* add tableBtn clicks name */
      ],
      "names": [
        /* add tableBtn chinese name */
      ],
      "types": [
        /* add tableBtn color */
      ],
      "width": 80
    }
  }
})

const { search, table, } = handleInit(ConfigData(), (data: any) => 
  axios.post({ url: "list", data }))
table.value.$onGetData(table.value, 1, search)
</script>

<style scoped></style>